package club.justwill.single.persistence.document;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * Created by luoyu on 2/23/16.
 */
@Document(collection = "project_hits")
public class ProjectHits extends MongoDocument {
    @Field("project_Id")
    @Indexed(name = "project_hits_project_Id")
    private Long projectId;

    @Field("project_hits")
    private Long projectHits;

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getProjectHits() {
        return projectHits;
    }

    public void setProjectHits(Long projectHits) {
        this.projectHits = projectHits;
    }
}
